<template>
  <div class="alert" @click="alert">
    <div  class="alert-wrap" @click.stop="alertWrap">
      <slot></slot>
    </div>
  </div>
</template>

<style scoped>
  .alert {
    position: fixed;
    z-index: 99;
    background-color: rgba(000, 000, 000, .3);
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }



  .alert-wrap{
    background-color: #fff;
    position: fixed;
    z-index: 66;
    text-align: center;
    box-sizing: border-box;
    border-radius: .125rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }


</style>

<script>
  export default{
    props: [],
    data(){
      return{
//        alertBtnGo:''
      }
    },
    methods: {
      alertWrap(){
        this.$emit('alertWrap');
      },
      alert(){
        this.$emit('alert');
      }
    }
  }
</script>
